import { AppState } from '@/types'
import { defineStore } from 'pinia'

const useAppStore = defineStore({
	id: 'app',
	state: (): AppState => ({
		userName: '这是一个pinia用例',

	}),
	actions: {
		setUserName(userName: string) {
			this.userName = userName
		},

	}
})

export default useAppStore
